import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import module from 'tdesign-icons-vue-next/lib/components/module';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  server: {
    proxy: {
      '/map-api': {
        target: 'https://apis.map.qq.com',
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/map-api/, '')
      }
    }
  }
})

